package com.aspose.cells;

class zbgz extends zcj {
   zbgz(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var2 = new com.aspose.cells.b.a.b.a.ze();
      float var3 = 0.0F;
      float var4 = 0.0F;
      float var5 = 0.0F;
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = 0.0F;
      float var10 = 0.0F;
      com.aspose.cells.b.a.b.zo[] var11 = new com.aspose.cells.b.a.b.zo[18];
      switch(this.e.l.a.size()) {
      case 1:
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var8 = var1.i() * 5200.0F / 21600.0F;
            var9 = var1.h() * 2630.0F / 21600.0F;
            var10 = var1.i() * 8193.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328) {
            var7 = var1.h() * 0.25462964F;
            var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var9 = var1.h() * 2630.0F / 21600.0F;
            var10 = var1.i() * 8193.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 329) {
            var7 = var1.h() * 0.25462964F;
            var8 = var1.i() * 5200.0F / 21600.0F;
            var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var10 = var1.i() * 8193.0F / 21600.0F;
         } else {
            var7 = var1.h() * 0.25462964F;
            var8 = var1.i() * 5200.0F / 21600.0F;
            var9 = var1.h() * 2630.0F / 21600.0F;
            var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         }
         break;
      case 2:
         if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 328) {
            var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var9 = var1.h() * 2630.0F / 21600.0F;
            var10 = var1.i() * 8193.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 329) {
            var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var8 = var1.i() * 5200.0F / 21600.0F;
            var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var10 = var1.i() * 8193.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 330) {
            var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var8 = var1.i() * 5200.0F / 21600.0F;
            var9 = var1.h() * 2630.0F / 21600.0F;
            var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328 && ((zak)this.e.l.a.get(1)).b() == 329) {
            var7 = var1.h() * 0.25462964F;
            var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var10 = var1.i() * 8193.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328 && ((zak)this.e.l.a.get(1)).b() == 330) {
            var7 = var1.h() * 0.25462964F;
            var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var9 = var1.h() * 2630.0F / 21600.0F;
            var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 329 && ((zak)this.e.l.a.get(1)).b() == 330) {
            var7 = var1.h() * 0.25462964F;
            var8 = var1.i() * 5200.0F / 21600.0F;
            var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         }
         break;
      case 3:
         if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 328 && ((zak)this.e.l.a.get(2)).b() == 329) {
            var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
            var10 = var1.i() * 8193.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 329 && ((zak)this.e.l.a.get(2)).b() == 330) {
            var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var8 = var1.i() * 5200.0F / 21600.0F;
            var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328 && ((zak)this.e.l.a.get(1)).b() == 329 && ((zak)this.e.l.a.get(2)).b() == 330) {
            var7 = var1.h() * 0.25462964F;
            var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 328 && ((zak)this.e.l.a.get(2)).b() == 330) {
            var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var9 = var1.h() * 2630.0F / 21600.0F;
            var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         }
         break;
      case 4:
         var7 = var1.h() * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
         var8 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var9 = var1.h() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         var10 = var1.i() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(3)).a()) / 21600.0F;
         break;
      default:
         var7 = var1.h() * 0.25462964F;
         var8 = var1.i() * 5200.0F / 21600.0F;
         var9 = var1.h() * 2630.0F / 21600.0F;
         var10 = var1.i() * 8193.0F / 21600.0F;
      }

      var3 = var1.i() - var10 * 2.0F;
      var4 = var1.i() / 2.0F - var8;
      var6 = var1.h() - var7 * 2.0F;
      var11[0] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g() + var1.i() / 2.0F);
      var11[1] = new com.aspose.cells.b.a.b.zo(var1.f() + var9, var1.g() + var1.i() / 2.0F - var4);
      var11[2] = new com.aspose.cells.b.a.b.zo(var1.f() + var9, var1.g() + var1.i() / 2.0F - var3 / 2.0F);
      var11[3] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F, var1.g() + var1.i() / 2.0F - var3 / 2.0F);
      var11[4] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F, var1.g());
      var11[5] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F + var6, var1.g());
      var11[6] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F + var6, var1.g() + var1.i() / 2.0F - var3 / 2.0F);
      var11[7] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() - var9, var1.g() + var1.i() / 2.0F - var3 / 2.0F);
      var11[8] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() - var9, var1.g() + var1.i() / 2.0F - var4);
      var11[9] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g() + var1.i() / 2.0F);
      var11[10] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() - var9, var1.g() + var1.i() / 2.0F + var4);
      var11[11] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() - var9, var1.g() + var1.i() / 2.0F - var3 / 2.0F + var3);
      var11[12] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F + var6, var1.g() + var1.i() / 2.0F - var3 / 2.0F + var3);
      var11[13] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F + var6, var1.g() + var1.i());
      var11[14] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F, var1.g() + var1.i());
      var11[15] = new com.aspose.cells.b.a.b.zo(var1.f() + (var1.h() - var6) / 2.0F, var1.g() + var1.i() / 2.0F - var3 / 2.0F + var3);
      var11[16] = new com.aspose.cells.b.a.b.zo(var1.f() + var9, var1.g() + var1.i() / 2.0F - var3 / 2.0F + var3);
      var11[17] = new com.aspose.cells.b.a.b.zo(var1.f() + var9, var1.g() + var1.i() / 2.0F + var4);
      var2.b(var11);
      return var2;
   }
}
